<!--详细信息界面代码-->
<?php
    $cityname = $_GET['cityname'];
    $cityid = $_GET['cityid'];
    echo "<p id='cityname' style='display:none;'>$cityname</p>";
    echo "<p id='cityid' style='display:none;'>$cityid</p>";
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
       <script src="https://code.jquery.com/jquery-3.1.1.js"></script>
       <script>
           $(function(){
               $.ajax({
                  url:'http://apis.baidu.com/apistore/weatherservice/recentweathers',
                  data:{cityname:$("#cityname").text(),cityid:$("#cityid").text()},
                  dataType:'json',
                  headers:{apikey:"764bea985cfd0e960fdca55c95d26f27"},
                  success:function (response){
                      console.log(response);
                  }
               });
           });
       </script>
    </body>
</html>